#设置头文件
set(MEMORY_POOL_HEADER
        e_palloc.h
)
#设置源文件
set(MEMORY_POOL_SOURCE
        e_palloc.c
)

#创建静态库
add_library(memory_pool STATIC ${MEMORY_POOL_SOURCE})

#设置包含目录
target_include_directories(memory_pool
        PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
)

#连接线程库
target_link_libraries(memory_pool
        INTERFACE
        Threads::Threads
)

##设置编译特性
#target_compile_features(memory_pool INTERFACE cxx_std_17)